﻿using Hospital.Model.Pay;
using SqlSugar;

namespace Hospital.Model.entity
{
    //就诊记录表
    public class VisitRecords : BaseId
    {
        [SugarColumn(Length = 500, IsNullable = true)]
        public string Stmptoms { get; set; }       //患者主诉，记录患者描述的症状。
        [SugarColumn(Length = 500, IsNullable = true)]
        public string Diagnosis { get; set; }      //诊断结果
        [SugarColumn(Length = 1000, IsNullable = true)]
        public string Treatment { get; set; }      //治疗方案
        public string Status { get; set; }         //就诊状态（0：进行中，1：已完成）
        public DateTime VisitDate { get; set; }    //就诊日期
        public DateTime CreatedAt { get; set; } = DateTime.Now;        //记录创建时间
        public DateTime UpdatedAt { get; set; }    //记录更新时间
        public int DoctorId { get; set; }         //接诊医生id
        public int RegistrationId { get; set; }   //挂号表Id


        [SugarColumn(IsIgnore = true)]
        public List<Medication> Medication { get; set; }
        [SugarColumn(IsIgnore = true)]
        public Doctor Doctor { get; set; }
        [SugarColumn(IsIgnore = true)]
        public Registration Registration { get; set; }
    }
}
